<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<title>Titulo</title>
		<script type="text/javascript" src="../gears_init.js"></script>
		<script type="text/javascript" src="../../core/core.js"></script>
		<script type="text/javascript" src="thread.js"></script>
		<script type="text/javascript">
			$.onReady(function(){
				
				//$.profile.start("thread");
				var t = new $.thread(
					function(){
						$.profile.start("thread");
						for(var i = 0,_i = 0; i < 10000000; i++){
							_i++;
						}
						alert($.profile.stop("thread") + "ms");
						document.body.innerHTML = "teste";
					}
				);
				
				t.run();
				t.stop();
				//alert($.profile.stop("thread"));
			});
		</script>
	</head>
	<body>
		
	</body>
</html>
